Convert Byte [] to PDF

Posted by Sri Kumar on Stack Overflow See other posts from Stack Overflow or by Sri Kumar
Published on 2010-03-16T11:53:45Z Indexed on 2010/03/16 11:56 UTC
Read the original article Hit count: 247

Filed under:
|
|
|

Hello All,

With help of this question C# 4.0: Convert pdf to byte[] and vice versa i was able to convert byte[] to PDF. But the problem here is not all the contents were written in PDF. Byte array length is 25990 approx. Only 21 to 26 KB size PDF file was created. When i try to open the PDF it says file is corrupted. What could be the reason?

I tried the BinaryWriter but it creates PDF of 0 KB.

© Stack Overflow or respective owner

Related posts about c#

Related posts about bytearray